import { request } from "@/utils/request";

//  轮播图列表
export function reqActivityBannerList(params: Record<string, any>) {
  return request({
    url: "/roomManage/activity/banner/list",
    method: "get",
    params
  });
}

//  轮播图添加
export function reqActivityBannerAdd(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/banner/add",
    method: "post",
    data
  });
}

//  轮播图编辑
export function reqActivityBannerEdit(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/banner/edit",
    method: "post",
    data
  });
}

//  轮播图删除
export function reqActivityBannerDel(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/banner/del",
    method: "post",
    data
  });
}

// 优惠活动
export function reqActivityDiscountList(params: Record<string, any>) {
  return request({
    url: "/roomManage/activity/discount/list",
    method: "get",
    params
  });
}

// 优惠活动-添加
export function reqActivityDiscountAdd(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/discount/add",
    method: "post",
    data
  });
}

// 优惠活动-编辑
export function reqActivityDiscountEdit(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/discount/edit",
    method: "post",
    data
  });
}

// 优惠活动编辑(排序|状态)
export function reqActivityDiscountSort(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/discount/sort",
    method: "post",
    data
  });
}

// 优惠活动-删除
export function reqActivityDiscountDel(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/discount/del",
    method: "post",
    data
  });
}

// 优惠活动-大转盘重置数据获取
export function reqActivityDiscountReset() {
  return request<DiscountConfig[]>({
    url: "/roomManage/activity/discount/getReset",
    method: "get"
  });
}

// 优惠活动记录
export function reqActivityDiscountRecord(params: Record<string, any>) {
  return request({
    url: "/roomManage/activity/discount/userRecord",
    method: "get",
    params
  });
}

// 优惠活动-抽奖审核|批量审核
export function reqActivityDiscountRecordAudit(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/discount/userRecord/audit",
    method: "post",
    data
  });
}

// 签到活动
export function reqActivitySignConfig() {
  return request<SignInMo>({
    url: "/roomManage/activity/signin/configShow",
    method: "get"
  });
}

// 签到活动编辑
export function reqActivitySignConfigEdit(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/signin/configEdit",
    method: "post",
    data
  });
}

// 签到活动-重置数据获取
export function reqActivitySignReset() {
  return request<SignInConfig[]>({
    url: "/roomManage/activity/signin/getReset",
    method: "get"
  });
}

// 签到活动记录
export function reqActivitySignRecord(params: Record<string, any>) {
  return request({
    url: "/roomManage/activity/signin/userRecord",
    method: "get",
    params
  });
}

// 签到活动-抽奖审核|批量审核
export function reqActivitySignRecordAudit(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/signin/userRecord/audit",
    method: "post",
    data
  });
}

// 邀请好友活动
export function reqActivityInviteConfig() {
  return request<InviteMo>({
    url: "/roomManage/activity/invite/configShow",
    method: "get"
  });
}

// 签到活动编辑
export function reqActivityInviteConfigEdit(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/invite/configEdit",
    method: "post",
    data
  });
}

// 签到活动-重置数据获取
export function reqActivityInviteReset() {
  return request<InviteConfig[]>({
    url: "/roomManage/activity/invite/getReset",
    method: "get"
  });
}

// 签到活动记录
export function reqActivityInviteRecord(params: Record<string, any>) {
  return request({
    url: "/roomManage/activity/invite/userRecord",
    method: "get",
    params
  });
}

// 签到活动-抽奖审核|批量审核
export function reqActivityInviteRecordAudit(data: Record<string, any>) {
  return request({
    url: "/roomManage/activity/invite/userRecord/audit",
    method: "post",
    data
  });
}
